import Vue from 'vue'
import App from './App.vue'

//引入mock
import "@/mock/mockServer"

//引入路由器
import router from "@/router"
//引入store
import store from "@/store"

//引入全局组件
import NavType from "@comp/NavType"
import Swiper from "@comp/Swiper"
import Pagenation from "@comp/Pagenation"

//注册全局组件
Vue.component("NavType" , NavType)
Vue.component("Swiper" , Swiper)
Vue.component("Pagenation" , Pagenation)

Vue.config.productionTip = false

new Vue({
  render: h => h(App),
  router,
  store,
  beforeCreate(){
    Vue.prototype.$bus = this
  },
}).$mount('#app')

